package com.maychat.enums;

public enum UpdateStatus {

    NOT_RELEASE("未发布"),
    GRAYSCALE("灰度发布"),
    RELEASE("完整发布");

    private String desc;

    UpdateStatus(String desc) {
        this.desc = desc;
    }

    public static UpdateStatus getByOrdinal(Integer ordinal) {
        UpdateStatus[] values = values();
        if (ordinal == null || ordinal < 0 || ordinal >= values.length) return null;
        return values[ordinal];
    }

    public String getDesc() {
        return desc;
    }
}
